package com.tueye.dao;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.tueye.base.util.Page;
import com.tueye.entity.Comment;
import com.tueye.entity.Pictures;
import com.tueye.entity.TopicType;
import com.tueye.entity.Topics;
import com.tueye.entity.user.Flowers;
import com.tueye.entity.user.User;
import com.tueye.entity.user.UserCollectionInfo;

 
/**
 * for publish topic dao layout
 * @author yuyue
 *
 */
public interface ITopicDao {
 
	List<TopicType> getAllTopicType();
	TopicType getTopicTypeById(String id);
	Topics getTopicById(String id);
	void saveTopics(Topics topic);
	void savePicture(Pictures picture);
	public Page pagedQueryByHQL(String hql,  int pageNo,  int pageSize,  Object... values);
	void addTopicType(TopicType tt);
	List<Comment> getAllCommentsByPId(String picid);
	Pictures getPictureById(String picid);
	  void saveComment(Comment comment);
	  public void delTopic(String id);
	  void delePictures(String hql);
	  public void delePic(String id,String picpath);
	  
	  void saveTopicCollect(UserCollectionInfo collectinfo);
	  
	  void saveFlower(Flowers flower);
	  
	  void updateTopic(Topics topic);
	  
	  int getCommentNumByTopicId(String topicId);
	  
	  User getUserByTopic(Topics topic);
	  
	  List queryBysql(String sql);
	  public List<Topics> getTopicsByHql(String hql);
	  public Map<String, Object> getFlowerNum(String topicid);
	  public String getClickNumByTopicId(String topicid);
	  List getFlowerByTopicsId(String topicsId);
	 
}
